<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<div id="header">
	<div class="header-login">
		<form class="form-inline" name='f'
			action="<c:url value='j_spring_security_check' />" method='POST'>
			<fieldset>
				<input type="text" class="input-small" name='j_username' placeholder="Email" /> 
				<input type="password" class="input-small" name='j_password' placeholder="Password" /> 
				<label class="checkbox"> 
					<input type="checkbox" name='_spring_security_remember_me' /> Remember me
				</label>
				<button type="submit" class="btn">Sign in</button>
				<c:if test="${not empty error}">
					<div class="errorblock">
						로그인을 실패하였습니다.<br />원인 :
						${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message}
					</div>
				</c:if>
			</fieldset>
		</form>

		
	</div>
</div>